import QtQuick 2.6

Item {
    property Item syncItem
    property Flickable view

    function reposition()
    {
        var pos = syncItem.mapToItem(parent.parent, 0, 0);
        parent.x = pos.x
        parent.y = pos.y
    }

    Component.onCompleted: reposition()


    Connections {
        target: view
        onContentYChanged: reposition()
        onContentHeightChanged: reposition()
    }
    visible: false
}
